<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("hero", $con);
$dateTime = date("Y-m-d",strtotime("-1 day"));

mysql_query("TRUNCATE TABLE hero.hero_query");
mysql_query("TRUNCATE TABLE hero.hero_query_temp");
mysql_close($con);
?>